package com.xci.platform.upload;

import lombok.Data;

/**
 * 上传文件选项
 */
@Data
public class UploadFileOptions {

    /**
     * 文件上传到的虚拟目录,默认为:/upload/
     */
    private String uploadPath = "/upload/";

    /**
     * 允许文件上传的扩展名,不含点,默认值:gif, jpg, jpeg, png, bmp, zip, rar, doc, docx, xls, xlsx, ppt, pptx
     */
    private String[] allowExtension = new String[]{"gif", "jpg", "jpeg", "png", "bmp", "zip", "rar", "doc", "docx", "xls", "xlsx", "ppt", "pptx"};

    /**
     * 允许文件上传的最大文件大小,单位KB,默认10M
     */
    private long allowMaxSize = 10240;
}
